<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="controller.*"%> 
<%@page import="persistence.*"%>
<%
    AccesoBD baseDatos=(AccesoBD)session.getAttribute("conex");
    String username,subMenu;
        if(session.getAttribute("username")==null){
           username="Usuario";
           subMenu="Login.jsp";
        }else{
            username= (String)session.getAttribute("username");
            subMenu="salir.jsp";
        }
    GenerarHTMLNuevaPropiedad html=new GenerarHTMLNuevaPropiedad();
    try
    {
        //baseDatos.iniciarTransaccion();
        out.print(html.generarHTMLHead("Nueva Propiedad"));
        out.print(html.generarHTMLMenu(username,subMenu));
        out.print(html.generarHTMLMainContent());
        out.print(html.generarHTMLAddTab());
        out.print(html.generarHTMLFooter());
        out.print(html.generarHTMLFinal());
        
    }catch(Exception e){
        //baseDatos.rollbackTransaccion();
    }
%>